package org.example.commonapi.mongo;

import org.example.commonapi.domain.onlineCode.CommitOwn;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommitOwnRepository extends MongoRepository<CommitOwn, String> {

    // 根据 problemId 和 username 联合查询 CommitOwn 列表
    List<CommitOwn> findByProblemIdAndUsername(String problemId, String username);
}
